package com.wksc.test.ehcache.json;

import com.fasterxml.jackson.databind.ObjectMapper;

import java.text.SimpleDateFormat;


public class CustomObjectMapper extends ObjectMapper {
    public CustomObjectMapper() {
        super();
        getSerializerProvider().setNullValueSerializer(new JsonNullSerializer());
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.setDateFormat(formatter);
    }
}